// for 循环示例
package main

import "fmt"

func main() {
	sum := 0
	for index := 0; index < 10; index++ {
		sum += index
	}
	// sum = 45
	fmt.Println("sum is equal to ", sum)
}